import { Sceesrt, Commodity_List } from '../../api/table'

const table = {
    state: {

    },
    mutations: {

    },
    actions: {
        sceesrt({ commit, stata }, forme) {
            return new Promise((resolve, reject) => {
                Sceesrt(forme).then(data => {
                    resolve(data)
                }).catch(error => {
                    reject(error)
                })
            })
        },

        // 商品购物车
        commodity_list({ commit, stata }, listes) {
            return new Promise((resolve, reject) => {
                Commodity_List(listes).then(data => {
                    resolve(data)
                }).catch(error => {
                    reject(error)
                })
            })
        }
    }
}
export default table